using System;
using System.Data;

namespace Dzzzr.DataLayer
{
	public class CarProvider
	{
		public static IDataReader GetCarList(int teamID)
		{
			return Helper.DB.ExecuteReader("GetCarList", teamID);
		}
		public static void InsertCar(int id, string name, string description, int maxSendingPause, string model, string registrationNumber, string color)
		{
			Helper.DB.ExecuteNonQuery("InsertCar", id, name, description, maxSendingPause, model, registrationNumber, color);
		}
		public static void UpdateCar(int id, string name, string description,  int maxSendingPause,  string model, string registrationNumber, string color)
		{
			Helper.DB.ExecuteNonQuery("UpdateCar", id, name, description, maxSendingPause, model, registrationNumber, color);
		}
		public static void DeleteCar(int carID)
		{
			Helper.DB.ExecuteNonQuery("DeleteCar", carID);
		}


	}
}